<?php
if(isset($_REQUEST['type']))
{
    if($_REQUEST['type'] == 'pilih'){
    ?>
        <a href="index.php?page=add_item&&type=add_dur">Duration</a><br>
        <a href="index.php?page=add_item&&type=add_con">Consumable</a>
        
    <?php
    }
    ?>
    <?php
    if($_REQUEST['type'] == 'add_con') {
    ?>
    <a href="index.php?page=add_item&&action=gcashcon">Item Consumable G-Cash</a><br>
    <a href="index.php?page=add_item&&action=pointcon">Item Consumable Point</a><br>
    <?php
    }elseif($_REQUEST['type'] == 'add_dur'){
    ?>
    <a href="index.php?page=add_item&&action=gcashdur">Item Duration G-Cash</a><br>
    <a href="index.php?page=add_item&&action=pointdur">Item Duration Point</a><br>
    <?php
    }
}
    ?>

<?php
if(isset($_REQUEST['action'])){
	if($_REQUEST['action'] == 'gcashdur'){
?>
<form action="proses_add_item.php" method="post" enctype="multipart/form-data" name="form1" id="form1">
  <table width="500" border="1" align="center" cellpadding="1" cellspacing="1">
    <tr>
      <td colspan="3" align="center">Add Item G-Cash Duration</td>
    </tr>
    <tr>
      <td>Picture</td>
      <td>:</td>
      <td><label for="picture"></label>
      <input type="file" name="picture" id="picture" /></td>
    </tr>
    <tr>
      <td>Item Name</td>
      <td>:</td>
      <td><label for="item_name"></label>
      <input type="text" name="item_name" id="item_name" /></td>
    </tr>
    <tr>
      <td>Mark</td>
      <td>:</td>
      <td><label for="mark"></label>
        <select name="mark" id="mark">
          <option value="hot">Hot</option>
          <option value="new">New</option>
          <option value="regular">Regular</option>
      </select></td>
    </tr>
    <tr>
      <td>Duration &amp; Price</td>
      <td>:</td>
      <td><label for="dp">1 Day : 
          <input name="gcash1" type="text" id="gcash1" size="6" maxlength="6">
           G-Cash<br>
      3 Day : 
          <input name="gcash3" type="text" id="gcash3" size="6" maxlength="6">
          G-Cash<br>
          7 Day :
          <input name="gcash7" type="text" id="gcash7" size="6" maxlength="6">
          G-Cash<br>
          30 Day :
          <input name="gcash30" type="text" id="gcash30" size="6" maxlength="6">
      G-Cash</label></td>
    </tr>
    <tr>
      <td>Description</td>
      <td>:</td>
      <td><label for="damage"></label>
        <label>
        <textarea name="description" cols="30" rows="10" id="description"></textarea>
      </label></td>
    </tr>
    <tr>
      <td>Status</td>
      <td>:</td>
      <td><select name="status" id="status">
        <option value="sell">Sell</option>
        <option value="not_sell">Not Sell</option>
      </select>
        <input name="tipe" type="hidden" id="tipe" value="gcash" />
        <input name="cattegory" type="hidden" id="cattegory" value="duration" />
        <input type="hidden" name="point1" id="point1" />
        <input type="hidden" name="point3" id="point3" />
        <input type="hidden" name="point7" id="point7" />
        <input type="hidden" name="point30" id="point30" /></td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td><input type="submit" name="button" id="button" value="Submit" /></td>
    </tr>
  </table>
</form>
  </table>
</form>
<?php
	}elseif($_REQUEST['action'] == 'pointdur'){
?>
<form action="proses_add_item.php" method="post" enctype="multipart/form-data" name="form1" id="form1">
  <table width="500" border="1" align="center" cellpadding="1" cellspacing="1">
    <tr>
      <td colspan="3" align="center">Add Item Point Duration</td>
    </tr>
    <tr>
      <td>Picture</td>
      <td>:</td>
      <td><label for="picture"></label>
      <input type="file" name="picture" id="picture" /></td>
    </tr>
    <tr>
      <td>Item Name</td>
      <td>:</td>
      <td><label for="item_name"></label>
      <input type="text" name="item_name" id="item_name" /></td>
    </tr>
    <tr>
      <td>Mark</td>
      <td>:</td>
      <td><label for="mark"></label>
        <select name="mark" id="mark">
          <option value="hot">Hot</option>
          <option value="new">New</option>
          <option value="regular">Regular</option>
      </select></td>
    </tr>
    <tr>
      <td>Duration &amp; Price</td>
      <td>:</td>
      <td><label for="dp"></label><label for="dp">1 Day :
          <input name="point1" type="text" id="point1" size="6" maxlength="6" /> 
          Point
<br />
3 Day :
<input name="point3" type="text" id="gcash4" size="6" maxlength="6" />
Point <br />
7 Day :
<input name="point7" type="text" id="gcash5" size="6" maxlength="6" />
Point <br />
30 Day :
<input name="point30" type="text" id="gcash6" size="6" maxlength="6" />
Point </label></td>
    </tr>
    <tr>
      <td>Description</td>
      <td>:</td>
      <td><label for="damage"></label>
        <label>
        <textarea name="description" cols="30" rows="10" id="description"></textarea>
      </label></td>
    </tr>
    <tr>
      <td>Status</td>
      <td>:</td>
      <td><select name="status" id="status">
        <option value="sell">Sell</option>
        <option value="not_sell">Not Sell</option>
      </select>
        <input name="tipe" type="hidden" id="tipe" value="point" />
        <input name="cattegory" type="hidden" id="cattegory" value="duration" />
        <input type="hidden" name="gcash1" id="gcash1" />
        <input type="hidden" name="gcash3" id="gcash3" />
        <input type="hidden" name="gcash7" id="gcash7" />
        <input type="hidden" name="gcash30" id="gcash30" /></td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td><input type="submit" name="button" id="button" value="Submit" /></td>
    </tr>
  </table>
</form>
  </table>
</form>
<?php
	}else{
		echo"&nbsp;";	
	}
}
?>




<?php
if(isset($_REQUEST['action'])){
	if($_REQUEST['action'] == 'gcashcon'){
?>
<form action="proses_add_item.php" method="post" enctype="multipart/form-data" name="form1" id="form1">
  <table width="500" border="1" align="center" cellpadding="1" cellspacing="1">
    <tr>
      <td colspan="3" align="center">Add Item G-Cash Consumable</td>
    </tr>
    <tr>
      <td>Picture</td>
      <td>:</td>
      <td><label for="picture"></label>
      <input type="file" name="picture" id="picture" /></td>
    </tr>
    <tr>
      <td>Item Name</td>
      <td>:</td>
      <td><label for="item_name"></label>
      <input type="text" name="item_name" id="item_name" /></td>
    </tr>
    <tr>
      <td>Mark</td>
      <td>:</td>
      <td><label for="mark"></label>
        <select name="mark" id="mark">
          <option value="hot">Hot</option>
          <option value="new">New</option>
          <option value="regular">Regular</option>
      </select></td>
    </tr>
    <tr>
      <td>Duration &amp; Price</td>
      <td>:</td>
      <td><label for="dp">
        <input name="unit_1" type="text" id="unit_1" size="6" maxlength="6" /> 
        Unit : 
          <input name="cash_price_1" type="text" id="cash_price_1" size="6" maxlength="6">
          G-Cash<br>
          <input name="unit_2" type="text" id="unit_2" size="6" maxlength="6" /> 
        Unit : 
        <input name="cash_price_2" type="text" id="cash_price_2" size="6" maxlength="6">
      G-Cash</label></td>
    </tr>
    <tr>
      <td>Description</td>
      <td>:</td>
      <td><label for="damage"></label>
        <label>
        <textarea name="description" cols="30" rows="10" id="description"></textarea>
      </label></td>
    </tr>
    <tr>
      <td>Status</td>
      <td>:</td>
      <td><select name="status" id="status">
        <option value="sell">Sell</option>
        <option value="not_sell">Not Sell</option>
      </select>
        <input name="tipe" type="hidden" id="tipe" value="gcash" />
        <input name="cattegory" type="hidden" id="cattegory" value="consumable" />
        <input type="hidden" name="point_price_1" id="point_price_1" />
        <input type="hidden" name="point_price_2" id="point_price_2" /></td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td><input type="submit" name="button" id="button" value="Submit" /></td>
    </tr>
  </table>
</form>
  </table>
</form>
<?php
	}elseif($_REQUEST['action'] == 'pointcon'){
?>
<form action="proses_add_item.php" method="post" enctype="multipart/form-data" name="form1" id="form1">
  <table width="500" border="1" align="center" cellpadding="1" cellspacing="1">
    <tr>
      <td colspan="3" align="center">Add Item Point Consumable</td>
    </tr>
    <tr>
      <td>Picture</td>
      <td>:</td>
      <td><label for="picture"></label>
      <input type="file" name="picture" id="picture" /></td>
    </tr>
    <tr>
      <td>Item Name</td>
      <td>:</td>
      <td><label for="item_name"></label>
      <input type="text" name="item_name" id="item_name" /></td>
    </tr>
    <tr>
      <td>Mark</td>
      <td>:</td>
      <td><label for="mark"></label>
        <select name="mark" id="mark">
          <option value="hot">Hot</option>
          <option value="new">New</option>
          <option value="regular">Regular</option>
      </select></td>
    </tr>
    <tr>
      <td>Duration &amp; Price</td>
      <td>:</td>
      <td><label for="dp">
        <input name="unit_1" type="text" id="unit_1" size="6" maxlength="6" />
Unit :
<input name="point_price_1" type="text" id="one_day5" size="6" maxlength="6" />
Point
<br />
<input name="unit_2" type="text" id="one_day6" size="6" maxlength="6" />
Unit :
<input name="point_price_2" type="text" id="point_price_2" size="6" maxlength="6" /> 
Point
</label></td>
    </tr>
    <tr>
      <td>Description</td>
      <td>:</td>
      <td><label for="damage"></label>
        <label>
        <textarea name="description" cols="30" rows="10" id="description"></textarea>
      </label></td>
    </tr>
    <tr>
      <td>Status</td>
      <td>:</td>
      <td><select name="status" id="status">
        <option value="sell">Sell</option>
        <option value="not_sell">Not Sell</option>
      </select>
        <input name="tipe" type="hidden" id="tipe" value="point" />
        <input name="cattegory" type="hidden" id="cattegory" value="consumable" />
        <input type="hidden" name="cash_price_1" id="cash_price_1" />
        <input type="hidden" name="cash_price_2" id="cash_price_2" /></td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td><input type="submit" name="button" id="button" value="Submit" /></td>
    </tr>
  </table>
</form>
  </table>
</form>
<?php
	}else{
		echo"&nbsp;";	
	}
}
?>